﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="WXAdd.aspx.cs" Inherits="AdminAdd" ValidateRequest="false" %>

<!DOCTYPE html>
<html>
<head>
   <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>50CMS后台框架</title>
    <link rel="shortcut icon" href="favicon.ico">
     <link href="../css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="../css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link href="../css/animate.css" rel="stylesheet">
    <link href="../css/style.css?v=4.1.0" rel="stylesheet">
    
        <link href="../50/style.css" rel="stylesheet" />
    <link href="../css/plugins/iCheck/custom.css" rel="stylesheet">  

    <style>
        .footable li {
            float: left;
            margin-right: 10px;
            width: 142px;
            list-style-type: none;
        }

        .form-horizontal .checkbox, .form-horizontal .checkbox-inline, .form-horizontal .radio, .form-horizontal .radio-inline {
    padding-top: 2px;
    margin-top: 0;
    margin-bottom: 0;
}

        .checkall 
        {
               
    font-weight: 600;
    font-size:15px;
        }

        input[type="checkbox"] 
{
margin: 2px 3px 0px 1px;
}
   </style>

</head>
<body class="gray-bg">
<form id="form1" runat="server" class="form-horizontal m-t">
<div class="wrapper  animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox-content">
                <div class="panel-body">
                    <ul class="nav nav-tabs">
                        <li class="active" id="tab1" ><a data-toggle="tab" href="#tab11" aria-expanded="true">
                            系统权限设置</a> </li>
                    </ul>
                    <div class="tab-content">
                        <div id="tab11" class="tab-pane  active">
                        <asp:Literal ID="ltMasterSetting" runat="server"></asp:Literal>  
                            
                            
                            <asp:RadioButtonList ID="RadioButtonList1" runat="server"  CssClass="checkbox-inline i-checks" >
                                <asp:ListItem>一般违法</asp:ListItem>
                                <asp:ListItem>严重违法</asp:ListItem>
                                <asp:ListItem>各类隐患</asp:ListItem>
                                <asp:ListItem>其他</asp:ListItem>
                            </asp:RadioButtonList>  
                                                      
                        </div>
                    </div>
                </div>
                <asp:TextBox ID="TextBox1" runat="server" style="display:none;"></asp:TextBox>
                <span class="btn_all btn btn-info" onclick="checktheAll(this);">全选</span> &nbsp;  &nbsp;
                <asp:Button ID="btnSave" runat="server" Text="确认保存"  CssClass="btn btn-primary" onclick="btnSave_Click" />
                &nbsp;  &nbsp;
                <input type="button" class="btn btn-primary" id="btnCancel" value="取消" onclick="javascript:jQuery().colorbox.close();"/>
            </div>
        </div>
    </div>
</div>    
</form>

    
<!-- 全局js -->
<script src="../js/jquery.min.js?v=2.1.4"></script>
<script src="../js/bootstrap.min.js?v=3.3.6"></script>

<!-- 自定js -->
<script src="../50/function.js"></script>
<!-- iCheck -->
<script src="../js/plugins/iCheck/icheck.min.js"></script>
<script>
    $(document).ready(function () {
        $('.i-checks').iCheck({
            checkboxClass: 'icheckbox_square-green',
            radioClass: 'iradio_square-green',

        });
    });
</script>

<script type="text/javascript" src="../js/layer/layer.js"></script>
<script type="text/javascript">
    if (typeof (Close) != "undefined") {
    layer.msg('保存成功，正在返回', {
    time: 2000, //20s后自动关闭 
    },function()
    {
    var index = parent.layer.getFrameIndex(window.name); //获取当前窗体索引
    parent.layer.close(index); //执行关闭
    });       
    }

    //全选取消按钮函数，调用样式如：
    function checktheAll(chkobj) {
        if ($(chkobj).text() == "全选") {
            $(chkobj).text("取消");
            $(".checkall").attr("checked", true);
                  
            $(".icheckbox_square-green").addClass("checked");

        } else {
            $(chkobj).text("全选");
            $(".checkall").attr("checked", false);
            $(".icheckbox_square-green").removeClass("checked");
                   
        }
    }
    

    $("#btnSave").click(function () {
        var item = ",";
        $("input[name='admin_power']:checked").each(function () {
            item += $(this).val() + ",";
        });
        $("#TextBox1").val(item);
        return true;
    });
</script>
 
</body>
</html>
